import Vue from 'vue';
import App from './App';
import router from './router';
import store from './store';
import './plugins';
import { isClientEnv, runEnv } from './config/settings';
// if (!isProdEnv) {
//   const { mockXHR } = require('../mock');
//   mockXHR();
// }
if (isClientEnv && runEnv !== 'prod') {
  import('vconsole').then(v => new v.default());
}

Vue.config.productionTip = false;
new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app');
